﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="modificationList.aspx.vb" Inherits="myWebsite.modificationlist" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <br />
</p>
<p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="MotorcyclesDb" AllowSorting="True">
        <Columns>
            <asp:BoundField DataField="Make" HeaderText="Make" SortExpression="Make" />
            <asp:BoundField DataField="Model" HeaderText="Model" SortExpression="Model" />
            <asp:BoundField DataField="Category" HeaderText="Category" 
                SortExpression="Category" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:BoundField DataField="Difficulty" HeaderText="Difficulty" 
                SortExpression="Difficulty" />
            <asp:ImageField DataImageUrlField="Picture" HeaderText="Photo">
                <ControlStyle Height="100px" Width="150px" />
            </asp:ImageField>
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="detail.aspx?ID={0}" HeaderText="Detail" 
                Text="Detail" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="MotorcyclesDb" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MotorcyclesConn %>" 
        ProviderName="<%$ ConnectionStrings:MotorcyclesConn.ProviderName %>" 
        
        SelectCommand="SELECT [ID], [Make], [Model], [Category], [Description], [Difficulty], [Picture] FROM [MyTable]"></asp:SqlDataSource>
</p>
<p>
</p>
<p>
</p>
</asp:Content>
